package cn.edu.scau.cmi.suyaoxing.client;
import cn.edu.scau.cmi.suyaoxing.interProgramming.*;
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;

public class InterProgrammingClient extends Application{
	public static void main(String[] args) {
	       launch(args);
	    }
	Student graduateStudent=new GraduateStudent();
	Student undergraduateStudent=new UndergraduateStudent();
	   @Override
	   public void start(Stage primaryStage) {
		   GridPane gridpane=new GridPane();
		   gridpane.setAlignment(Pos.CENTER);
	       
		   Label lb1=new Label("graduateStudent");
		   Label lb2=new Label("undergraduateStudent");
		   TextField tf1=new TextField();
	       tf1.setText(graduateStudent.learning());
	       tf1.setPrefWidth(500);
	       
	       TextField tf2=new TextField();
	       tf2.setText(undergraduateStudent.learning());
	       tf2.setPrefWidth(500);
	       
	       gridpane.add(lb1, 0, 0,3,1);
	       gridpane.add(lb2, 0, 1,3,1);
	       gridpane.add(tf1, 4, 0);
	       gridpane.add(tf2, 4, 1);
	       
	       Scene scene=new Scene(gridpane,1100,500);
	       primaryStage.setTitle("实验一接口编程");
	       primaryStage.setScene(scene);
	       primaryStage.show();
	    }
}
/*Student graduateStudent=new GraduateStudent();
graduateStudent.learning();

Student undergraduateStudent=new UndergraduateStudent();
undergraduateStudent.learning();*/
